package com.mall.web.controller;

import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.util.WebUtils;

import com.mall.untils.MapUtil;
import com.mall.web.service.UserService;

/**
 *专家课程 
 */
@Controller
public class ExpertController {
	Logger logger = LoggerFactory.getLogger(ExpertController.class);
	@Resource UserService userService;
	
	@RequestMapping(value = "/web_expert")
	public String web_expert(HttpServletRequest request, ModelMap modelMap,HttpServletResponse response) {
		Map<String, Object> paraMap = WebUtils.getParametersStartingWith(request, "");
    	String open_id = MapUtil.getStringValue(paraMap, "open_id");
    	modelMap.addAttribute("open_id", open_id);
    	modelMap.addAttribute("footNavigation", 3);
		return "web_expert";
	}
	
	@RequestMapping(value = "/web_listen")
	public String web_listen(HttpServletRequest request, ModelMap modelMap,HttpServletResponse response) {
		return "web_listen";
	}
}
